package cn.itcast.pattern.proxy.cglib_proxy;

import cn.itcast.pattern.proxy.static_proxy.ProxyPoint;

public class Client {

    public static void main(String[] args) {

        //创建代理工厂类
        ProxyFactory factory = new ProxyFactory();

        //获取代理对象
        TrainStation prosyObject = factory.getProxyObject();

        //调用代理对象中的sell方法卖票
        prosyObject.sell();
    }
}
